package 补充.多线程;
class MySingleton3{
    private static MySingleton3 instance;
    private MySingleton3(){}
    public static MySingleton3 getInstance(){
        if(instance == null){
            instance = new MySingleton3();
        }
        return instance;
    }
}
public class 双重检查加锁机制 {
}
